app.service("topicService",function($http){
    this.list = function(){
        return $http.get("/topic/list");
    }

    this.save = function(entity){
        return $http.post("/topic/save",entity);
    }

    this.findOne = function(tid){
        return $http.get("/topic/getTopicOption?tid="+tid);
    }
    this.update = function(entity){
        return $http.post("/topic/update",entity)
    }
    this.del = function(ids){
        return $http.post("/topic/del?ids="+ids);
    }
});